require.config({
    paths: {
        "jquery": "jquery",
        "horseFox": "horseFox",
        "qrcode": "jquery.qrcode.min"
    }
});
require(['jquery', 'horseFox'], function () {
    console.log(hf.BrowserScreen());
    fetch("../json/index.json").then(function(res) {
        if (res.ok) {
            res.json().then(function(data) {
                console.log(data);
            });
        } else {
            console.log("Looks like the response wasn't perfect, got status", res.status);
        }
    }, function(e) {
        console.log("Fetch failed!", e);
    });
    $('h1').click(function () {
        require(['jquery', 'qrcode'], function () {
            alert("hello");
        });
    });
});
